#!/bin/bash

lyrics="/home/chaojiansong/tunes-hunter/data/test_data/lyrics/*"

# (1) delete nextline character
perl -pi -e 's/\n/ /g' $lyrics
# (2) delete non-English letter
perl -pi -e 's/[^A-Za-z ]/ /g' $lyrics
# (3) delete continuous blank
perl -pi -e 's/ +/ /g' $lyrics
# (4) upper to lower
perl -pi -e 's/(.)/\L$1/g' $lyrics
